<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy");
String path=request.getContextPath()+"/";
request.setAttribute("year", sdf.format(new java.util.Date()));%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Free East报表系统</title>
<link href="<%=path%>themes/css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function checkLogin(){
	with(document.loginForm){
		if(username.value==""){
			alert("请输入用户名!");
			username.focus();
			return false;
		}
		if(password.value==""){
			alert("请输入密码!");
			password.focus();
			return false;
		}
	}
	return true;
}
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?438385a1f9cff94bf447d684aa50d51b";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
	<div id="login">
		<div id="login_header">
			<h1 class="login_logo"><img src="<%=path%>themes/default/images/logo.png" /></a>
			</h1>
			<div class="login_headerContent">
				<div class="navList">
					<ul>
						<li><a href="#">设为首页</a></li>
					</ul>
				</div>
				<h2 class="login_title"><img src="<%=path%>themes/default/images/login_title.png" /></h2>
			</div>
		</div>
		<div id="login_content">
			<div class="loginForm">
				<form action="login.html" method="post" name="loginForm" onsubmit="return checkLogin();">
					<p>
						<label>用户名：</label>
						<input type="text" name="username" value="${username}" size="20" class="login_input" style="width:130px;" />
					</p>
					<p>
						<label>密　码：</label>
						<input type="password" name="password" size="20" class="login_input" style="width:130px;" />
					</p>
					<s:actionerror/>
					<div class="login_bar">
						<input class="sub" type="submit" value=" " />
					</div>
				</form>
			</div>
			<div class="login_banner"><img src="<%=path%>themes/default/images/login_banner.jpg" /></div>
		</div>
		<div id="login_footer">
			Copyright &copy; 2012-${year} <a href="http://east.lvxs.cn" target="dialog">Free EAST Team</a>
<%@ include file="/hm.jsp" %>
<%
_HMT _hmt = new _HMT("438385a1f9cff94bf447d684aa50d51b");
_hmt.setDomainName("lvxs.cn");
_hmt.setHttpServletObjects(request, response);
String _hmtPixel = _hmt.trackPageview();
%>
<img src="<%= _hmtPixel %>" width="0" height="0"  />
		</div>
	</div>

</body>
</html>